package com.atguigu.yygh.hosp.mongoTest;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;


/**
 * @author:ahang
 * @create:2022-09-01 15:59
 * @Description:
 */
@Document(collection = "User")
@Data
public class User {
    @Id
    private String id;
    private String name;
    private Integer age;
    private Date createTime;
}
